package com.xh.jf_blog.service;

import com.xh.jf_blog.bean.Userinfo;
import com.xh.jf_blog.common.form.LoginForm;
import com.xh.jf_blog.common.form.RegisterForm;
import com.xh.jf_blog.common.util.R;

import java.util.List;

/**
 * @Author PangJunjie
 * @Date 2024/1/31/031
 */
public interface UserinfoService {
    Userinfo login(LoginForm loginForm);

    R getPage(int page, int limit, Userinfo userinfo);

    Userinfo getById(int userinfoId);

    void saveOrUpdate(Userinfo userinfo);

    void deleteById(int userinfoId);

    R checkPassword(Userinfo userinfo);

    void register(RegisterForm registerForm);

    void resetPassword(RegisterForm registerForm);

    List<Userinfo> getHotAuthor();

    List<Userinfo> getList(Userinfo userinfo);


}
